﻿namespace WMS6.Web.InboundServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="ReceiptHistoryInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class ReceiptHistoryInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private decimal AllocatedQtyField;
        [OptionalField]
        private decimal CompletedQtyField;
        [OptionalField]
        private string CondititonCodeField;
        [OptionalField]
        private DateTime ExpiryDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ExternalLotField;
        [OptionalField]
        private string IsGenPutAwayField;
        [OptionalField]
        private string IsPutAwayedField;
        [OptionalField]
        private string LocField;
        [OptionalField]
        private string LotAttr01Field;
        [OptionalField]
        private string LotAttr02Field;
        [OptionalField]
        private string LotAttr03Field;
        [OptionalField]
        private string LotAttr04Field;
        [OptionalField]
        private string LotAttr05Field;
        [OptionalField]
        private string LotAttr06Field;
        [OptionalField]
        private string LotAttr07Field;
        [OptionalField]
        private string LotAttr08Field;
        [OptionalField]
        private string LotAttr09Field;
        [OptionalField]
        private string LotAttr10Field;
        [OptionalField]
        private string LotIDField;
        [OptionalField]
        private string LpnField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string PackIDField;
        [OptionalField]
        private DateTime ProduceDateField;
        [OptionalField]
        private DateTime ReceiptDateField;
        [OptionalField]
        private string ReceiptIDField;
        [OptionalField]
        private string ReceiptLineIDField;
        [OptionalField]
        private decimal ReceivedQtyField;
        [OptionalField]
        private decimal RemainQtyField;
        [OptionalField]
        private string SkuDescrField;
        [OptionalField]
        private string SkuIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private string TransIDField;
        [OptionalField]
        private string UomField;
        [OptionalField]
        private string VendorIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public decimal AllocatedQty
        {
            get
            {
                return this.AllocatedQtyField;
            }
            set
            {
                if (!this.AllocatedQtyField.Equals(value))
                {
                    this.AllocatedQtyField = value;
                    this.RaisePropertyChanged("AllocatedQty");
                }
            }
        }

        [DataMember]
        public decimal CompletedQty
        {
            get
            {
                return this.CompletedQtyField;
            }
            set
            {
                if (!this.CompletedQtyField.Equals(value))
                {
                    this.CompletedQtyField = value;
                    this.RaisePropertyChanged("CompletedQty");
                }
            }
        }

        [DataMember]
        public string CondititonCode
        {
            get
            {
                return this.CondititonCodeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CondititonCodeField, value))
                {
                    this.CondititonCodeField = value;
                    this.RaisePropertyChanged("CondititonCode");
                }
            }
        }

        [DataMember]
        public DateTime ExpiryDate
        {
            get
            {
                return this.ExpiryDateField;
            }
            set
            {
                if (!this.ExpiryDateField.Equals(value))
                {
                    this.ExpiryDateField = value;
                    this.RaisePropertyChanged("ExpiryDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ExternalLot
        {
            get
            {
                return this.ExternalLotField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternalLotField, value))
                {
                    this.ExternalLotField = value;
                    this.RaisePropertyChanged("ExternalLot");
                }
            }
        }

        [DataMember]
        public string IsGenPutAway
        {
            get
            {
                return this.IsGenPutAwayField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsGenPutAwayField, value))
                {
                    this.IsGenPutAwayField = value;
                    this.RaisePropertyChanged("IsGenPutAway");
                }
            }
        }

        [DataMember]
        public string IsPutAwayed
        {
            get
            {
                return this.IsPutAwayedField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsPutAwayedField, value))
                {
                    this.IsPutAwayedField = value;
                    this.RaisePropertyChanged("IsPutAwayed");
                }
            }
        }

        [DataMember]
        public string Loc
        {
            get
            {
                return this.LocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocField, value))
                {
                    this.LocField = value;
                    this.RaisePropertyChanged("Loc");
                }
            }
        }

        [DataMember]
        public string LotAttr01
        {
            get
            {
                return this.LotAttr01Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr01Field, value))
                {
                    this.LotAttr01Field = value;
                    this.RaisePropertyChanged("LotAttr01");
                }
            }
        }

        [DataMember]
        public string LotAttr02
        {
            get
            {
                return this.LotAttr02Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr02Field, value))
                {
                    this.LotAttr02Field = value;
                    this.RaisePropertyChanged("LotAttr02");
                }
            }
        }

        [DataMember]
        public string LotAttr03
        {
            get
            {
                return this.LotAttr03Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr03Field, value))
                {
                    this.LotAttr03Field = value;
                    this.RaisePropertyChanged("LotAttr03");
                }
            }
        }

        [DataMember]
        public string LotAttr04
        {
            get
            {
                return this.LotAttr04Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr04Field, value))
                {
                    this.LotAttr04Field = value;
                    this.RaisePropertyChanged("LotAttr04");
                }
            }
        }

        [DataMember]
        public string LotAttr05
        {
            get
            {
                return this.LotAttr05Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr05Field, value))
                {
                    this.LotAttr05Field = value;
                    this.RaisePropertyChanged("LotAttr05");
                }
            }
        }

        [DataMember]
        public string LotAttr06
        {
            get
            {
                return this.LotAttr06Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr06Field, value))
                {
                    this.LotAttr06Field = value;
                    this.RaisePropertyChanged("LotAttr06");
                }
            }
        }

        [DataMember]
        public string LotAttr07
        {
            get
            {
                return this.LotAttr07Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr07Field, value))
                {
                    this.LotAttr07Field = value;
                    this.RaisePropertyChanged("LotAttr07");
                }
            }
        }

        [DataMember]
        public string LotAttr08
        {
            get
            {
                return this.LotAttr08Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr08Field, value))
                {
                    this.LotAttr08Field = value;
                    this.RaisePropertyChanged("LotAttr08");
                }
            }
        }

        [DataMember]
        public string LotAttr09
        {
            get
            {
                return this.LotAttr09Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr09Field, value))
                {
                    this.LotAttr09Field = value;
                    this.RaisePropertyChanged("LotAttr09");
                }
            }
        }

        [DataMember]
        public string LotAttr10
        {
            get
            {
                return this.LotAttr10Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr10Field, value))
                {
                    this.LotAttr10Field = value;
                    this.RaisePropertyChanged("LotAttr10");
                }
            }
        }

        [DataMember]
        public string LotID
        {
            get
            {
                return this.LotIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotIDField, value))
                {
                    this.LotIDField = value;
                    this.RaisePropertyChanged("LotID");
                }
            }
        }

        [DataMember]
        public string Lpn
        {
            get
            {
                return this.LpnField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LpnField, value))
                {
                    this.LpnField = value;
                    this.RaisePropertyChanged("Lpn");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string PackID
        {
            get
            {
                return this.PackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PackIDField, value))
                {
                    this.PackIDField = value;
                    this.RaisePropertyChanged("PackID");
                }
            }
        }

        [DataMember]
        public DateTime ProduceDate
        {
            get
            {
                return this.ProduceDateField;
            }
            set
            {
                if (!this.ProduceDateField.Equals(value))
                {
                    this.ProduceDateField = value;
                    this.RaisePropertyChanged("ProduceDate");
                }
            }
        }

        [DataMember]
        public DateTime ReceiptDate
        {
            get
            {
                return this.ReceiptDateField;
            }
            set
            {
                if (!this.ReceiptDateField.Equals(value))
                {
                    this.ReceiptDateField = value;
                    this.RaisePropertyChanged("ReceiptDate");
                }
            }
        }

        [DataMember]
        public string ReceiptID
        {
            get
            {
                return this.ReceiptIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReceiptIDField, value))
                {
                    this.ReceiptIDField = value;
                    this.RaisePropertyChanged("ReceiptID");
                }
            }
        }

        [DataMember]
        public string ReceiptLineID
        {
            get
            {
                return this.ReceiptLineIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReceiptLineIDField, value))
                {
                    this.ReceiptLineIDField = value;
                    this.RaisePropertyChanged("ReceiptLineID");
                }
            }
        }

        [DataMember]
        public decimal ReceivedQty
        {
            get
            {
                return this.ReceivedQtyField;
            }
            set
            {
                if (!this.ReceivedQtyField.Equals(value))
                {
                    this.ReceivedQtyField = value;
                    this.RaisePropertyChanged("ReceivedQty");
                }
            }
        }

        [DataMember]
        public decimal RemainQty
        {
            get
            {
                return this.RemainQtyField;
            }
            set
            {
                if (!this.RemainQtyField.Equals(value))
                {
                    this.RemainQtyField = value;
                    this.RaisePropertyChanged("RemainQty");
                }
            }
        }

        [DataMember]
        public string SkuDescr
        {
            get
            {
                return this.SkuDescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuDescrField, value))
                {
                    this.SkuDescrField = value;
                    this.RaisePropertyChanged("SkuDescr");
                }
            }
        }

        [DataMember]
        public string SkuID
        {
            get
            {
                return this.SkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuIDField, value))
                {
                    this.SkuIDField = value;
                    this.RaisePropertyChanged("SkuID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string TransID
        {
            get
            {
                return this.TransIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransIDField, value))
                {
                    this.TransIDField = value;
                    this.RaisePropertyChanged("TransID");
                }
            }
        }

        [DataMember]
        public string Uom
        {
            get
            {
                return this.UomField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UomField, value))
                {
                    this.UomField = value;
                    this.RaisePropertyChanged("Uom");
                }
            }
        }

        [DataMember]
        public string VendorID
        {
            get
            {
                return this.VendorIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.VendorIDField, value))
                {
                    this.VendorIDField = value;
                    this.RaisePropertyChanged("VendorID");
                }
            }
        }
    }
}

